-- AstroCommunity: import any community modules here
-- We import this file in `lazy_setup.lua` before the `plugins/` folder.
-- This guarantees that the specs are processed before any user plugins.
-- @add by 52LYF

vim.g.rust_recommended_style = 0

-- user customzied
local o = vim.opt
o.termguicolors = true -- 启用真彩色
o.relativenumber = false -- Relative line numbers

-- Check if 'pwsh' is executable and set the shell accordingly
if vim.fn.executable("pwsh") == 1 then
	o.shell = "pwsh"
	o.shellcmdflag =
		"-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;"
	o.shellxquote = ""
end

-- neovide
if vim.g.neovide then
	-- Put anything you want to happen only in Neovide here
	-- vim.o.guifont = "JetBrains Mono:h14"
	vim.g.neovide_fullscreen = true
end
---@type LazySpec
return {
	"AstroNvim/astrocommunity",
	{ import = "astrocommunity.pack.lua" },
	-- import/override with your plugins folder
	{ import = "astrocommunity.colorscheme.catppuccin" },
	{ import = "astrocommunity.pack.rust" },
	{ import = "astrocommunity.pack.go" },
	{ import = "astrocommunity.pack.java" },
}
